import request from '@/utils/request'
/// /库区管理
// 查看分页信息
export const getlist = (params) => request.get('/api/area/pageDetail', { params })
// export const getlist = (params) => request.get('/api/area/page', { params })
// 删除库区
export const del = (id) => request.delete('api/area', { params: { 'ids[]': id } })
// 获取启用的仓库列表
export const getwarehouselist = () => request.get('api/warehouse/list?status=1')
// 新增库区
export const add = (data) => request.post('api/area', data)
// 获取新增库区编号
export const getCode = () => request.get('api/codeFactory/next/KQ')
// 获取仓库详情
export const detail = id => request.get(`/api/area/${id}`)
// 修改库区信息
export const edit = (data) => request.put('api/area', data)
// 修改库区状态
export const put = (data) => request.put('api/area', data)// 和上面接口一样,偷懒没改名字
// 上传excel
export const upload = (data) => request.post('api/area/importExcel', data)
